"use strict";

load('./vega-nashorn/nashorn-polyfill.js');
var window = {  };
load('./vega-nashorn/vega-es5-polyfill/polyfill.min.js')
load('./vega-nashorn/vega-es5-polyfill/runtime.min.js')
// load('./polyfill/fetch.umd.min.js')
load('./vega-nashorn/vega.js')
function nashornRender(spec) {
    spec = JSON.parse(spec);
    var view = new vega.View(vega.parse(spec))
            .renderer('svg')
            .initialize()
            .run()
            ;
    return view.toSVG();
}